                <?php 
                    slot('bodyId');
                        echo 'games';
                    end_slot(); 
                ?>	            
                <div id="lb-bg"></div>
                <div id="" class="grid_12 intro ">
			<h4><?php echo $game->getName(); ?></h4>
		</div><!--- end grid_12 intro -->
		
		<div id="" class="grid_12 game ">                    
                    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="880" height="400" id="loaderInfoExample" align="middle">
                        <param name="allowScriptAccess" value="sameDomain" />
                        <param name="allowFullScreen" value="false" />
                        <PARAM NAME=FlashVars VALUE="">
                        <param name="movie" value="" />
                        <param name="quality" value="high" />
                        <param name="bgcolor" value="#ffffff" />	
                        <embed src="<?php echo $game->getLink(); ?>" FlashVars="game_count=<?php echo $rozgrywka_id->rozgrywka_id ?>&write_path=<?php echo url_for('@gra_zapis?id='.$game->getId());  ?>" quality="high" bgcolor="#ffffff" width="880" height="440" name="loaderInfoExample" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
                    </object> 
                </div><!--- end grid_12 game -->
		
                <div class="grid_12 extraGameContent">
                    <p class="bold fr lightsController">
			<a href="#" id="lightsOff">Zgaś światło</a>
		 	<a href="#" id="lightsOn">Zapal światło</a>
                    </p>
                    <div class="rateGame">
                        <div id="remark">
                            Twoja ocena:
                        </div>                        
                        <div id="stars-container">
                            <?php 
                                foreach ($ratings as $rate): 
                                endforeach 
                            ?> 
                            <ul class='star-rate'>	  
                                <li class="<?php if (round($rate->avg_rate, 1) >= 1) {echo 'rated';} ?>"><a href='<?php echo url_for('@gra_ocena?id='.$game->getId().'&rate=1');  ?>' title='' class="star-one">mmmm</a></li>
                                <li class="<?php if (round($rate->avg_rate, 1) >= 2) {echo 'rated';} ?>"><a href='<?php echo url_for('@gra_ocena?id='.$game->getId().'&rate=2');  ?>' title='' class="star-two">try again</a></li>
                                <li class="<?php if (round($rate->avg_rate, 1) >= 3) {echo 'rated';} ?>"><a href='<?php echo url_for('@gra_ocena?id='.$game->getId().'&rate=3');  ?>' title='' class="star-three">mmm not bad</a></li>  
                                <li class="<?php if (round($rate->avg_rate, 1) >= 4) {echo 'rated';} ?>"><a href='<?php echo url_for('@gra_ocena?id='.$game->getId().'&rate=4');  ?>' title='' class="star-four">this is cool ya!</a></li>
                                <li class="<?php if (round($rate->avg_rate, 1) >= 5) {echo 'rated';} ?>"><a href='<?php echo url_for('@gra_ocena?id='.$game->getId().'&rate=5');  ?>' title='' class="star-five">very good</a></li>
                                <li class="<?php if (round($rate->avg_rate, 1) >= 6) {echo 'rated';} ?>"><a href='<?php echo url_for('@gra_ocena?id='.$game->getId().'&rate=6');  ?>' title='' class="star-five">very good</a></li>
                            </ul>
                        </div>
                        <div id="rateCont">
                            
                            <?php  ?>
                            
                            <?php 
                                foreach ($ratings as $rate): ?>
                            <p><?php echo round($rate->avg_rate, 1) ?><span>(<?php echo $rate->ilosc ?> głosów)</span></p>             
                            <?php
                                endforeach 
                            ?> 
                        </div>
                    </div>
                </div>
		
